Can I use `UnlockCommercialFeatures` for developing Java applications without a commercial license?

Posted by nondescript1 on Programmers See other posts from Programmers or by nondescript1
Published on 2013-10-23T15:56:33Z Indexed on 2013/10/23 16:07 UTC
Read the original article Hit count: 1021

Filed under:
|

As of Java 7 Update 40, Oracle is now including Java Mission Control in the JDK. Being always interested in a new profiling tool, I decided to check it out. However, trying to start Flight Recorder against a process, I get the following error,

Commercial features are not enabled.  In JDK7u4 and above, the JVM must be started with -XX:+UnlockCommercialFeatures -XX:+FlightRecorder

Now I'm getting cold feet about adding the JVM option -XX:+UnlockCommercialFeatures. I would only use this for profiling in development and not in production. From the article linked above,

JMC is available under the Oracle Binary Code License for Java. The license allows you to use JMC for free during development and testing, though a different (paid for) licence is required for production use.

I'm still leery about this. From Java SE Products, Flight Recorder certainly is a commercial feature; however, I find it very confusing that it's now included in the standard JDK release.

Anyone else have a read on this? Clearly nothing here is legally binding and your legal department should be consulted.

Reference: Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX

© Programmers or respective owner

Related posts about java

Related posts about licensing